<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Zend_View_Helper_Chat extends Zend_View_Helper_Abstract{
    
    function chat(){
        $usuarios = new Application_Model_Chat();
        $online = $usuarios->returnUsuarios();        
        if($online){
            echo "<div class='header-chat'></div>";            
            echo "<table class='tabela_chat' style='display: none'>";
            foreach($online as $usuario){
                echo "<tr class='click-usuario'>
                        <td class='foto-usuario'></td>
                        <td class='usuario_online'>".$usuario['nome']."</td>
                    </tr>";
            }
            echo "</table>";
        }
    }
    
}
?>
